package com.zzy.mccjt.service.service.impl;

import com.zzy.mccjt.service.dao.RoleMapper;
import com.zzy.mccjt.service.dao.RoleResourcesMapper;
import com.zzy.mccjt.service.service.RoleService;
import com.zzy.mccjt.service.service.UserService;
import com.zzy.pojo.system.login.resp.SystemRoleRespDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Autowired
    private UserService userService;
    @Autowired
    private RoleResourcesMapper roleResourcesMapper;


    @Override
    public List<SystemRoleRespDTO> selectSystemRoleInfoByUserId(Long userId) {
        return roleMapper.selectSystemRoleInfoByUserId(userId);
    }
}
